package org.jchains.intercept;

//import java.io.PrintStream;
import java.security.*;

// Referenced classes of package org.illegalaccess.jchains.intercept:
//            Emitter

public class TextEmitter
    implements Emitter
{

    public TextEmitter()
    {
    }

    public void init()
    {
    }

    public void emit(Class class1, Permission permission/*,short pos*/, StackTraceElement[] ste)
    {
		ProtectionDomain protectiondomain = class1.getProtectionDomain(); 
        CodeSource codesource = protectiondomain.getCodeSource();
        if(codesource != null)
            System.out.println("************************"+codesource.getLocation());
        else
            System.out.println("************************"+"<ALL>");
        System.out.println(permission);
    }

    public void exit()
    {
    }
}
